package com.chuangke.flow.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 【请填写功能名称】对象 flow_ru_task
 * 
 * @author chuangke
 * @date "2020-09-27"
 */
public class FlowRuTask implements Serializable {
   
	
    private static final long serialVersionUID = -6844388300995641937L;
	
	/** id */
    private String id;

    /** 流程id */
    private String flowId;

    /** 节点id */
    private String nodeId;
    
    private String orderId ;
    
    /** 任务顺序 */
    private int orderNum ;

    /** 处理人 */
    private String userId;
    
    @TableField(exist = false)
    private String userName ;

    /** 处理状态 */
    private String status;
    
    @TableField(exist = false)
    private String statusName;
    
    private Date startAt ;
    
    private Date endAt ;

    /** 意见 */
    private String comments;

	/** 原任务id */
	private String originTaskId ;

	/** 任务类型 */
	private String type ;

    private Date createdAt;

    private String createdBy;

    /** 修改时间 */
    private Date updatedAt;

    private String updatedBy;


    public FlowRuTask id(String id) {
        this.id = id;
        return this ;
    }

    public String getId() {
        return id;
    }
    
    public FlowRuTask flowId(String flowId) {
        this.flowId = flowId;
        return this ;
    }

    public String getFlowId() {
        return flowId;
    }
    
    public FlowRuTask nodeId(String nodeId) {
        this.nodeId = nodeId;
        return this ;
    }

    public String getNodeId() {
        return nodeId;
    }
    
    public String getOrderId() {
		return orderId;
	}

	public FlowRuTask orderId(String orderId) {
		this.orderId = orderId;
		return this ;
	}
	
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public int getOrderNum() {
		return orderNum;
	}

	public FlowRuTask orderNum(int orderNum) {
		this.orderNum = orderNum;
		return this ;
	}

	public FlowRuTask userId(String userId) {
        this.userId = userId;
        return this ;
    }

    public String getUserId() {
        return userId;
    }
    
    public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public FlowRuTask status(String status) {
        this.status = status;
        return this ;
    }

    public String getStatus() {
        return status;
    }
    
    public FlowRuTask comments(String comments) {
        this.comments = comments;
        return this ;
    }

    public String getComments() {
        return comments;
    }
    
    public FlowRuTask updatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
        return this ;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

	public Date getCreatedAt() {
		return createdAt;
	}

	public FlowRuTask createdAt(Date createdAt) {
		this.createdAt = createdAt;
		return this ;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public FlowRuTask createdBy(String createdBy) {
		this.createdBy = createdBy;
		return this ;
	}

	public String getUpdatedBy() {
		return updatedBy;
	}

	public FlowRuTask updatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
		return this ;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setFlowId(String flowId) {
		this.flowId = flowId;
	}

	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getStatusName() {
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	public Date getStartAt() {
		return startAt;
	}

	public void setStartAt(Date startAt) {
		this.startAt = startAt;
	}

	public Date getEndAt() {
		return endAt;
	}

	public void setEndAt(Date endAt) {
		this.endAt = endAt;
	}
	
	public FlowRuTask startAt(Date startAt) {
		this.startAt = startAt;
		return this ;
	}
	
	public FlowRuTask endAt(Date endAt) {
		this.endAt = endAt;
		return this ;
	}

	public String getOriginTaskId() {
		return originTaskId;
	}

	public void setOriginTaskId(String originTaskId) {
		this.originTaskId = originTaskId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
